package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 职工对象 jx_staff
 */
public class JxStaff extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long staffId;

    @Excel(name = "工号")
    private String staffNo;

    @Excel(name = "姓名")
    private String name;

    @Excel(name = "性别", readConverterExp = "M=男,F=女")
    private String gender;

    @Excel(name = "职位")
    private String position;

    @Excel(name = "电话")
    private String phone;

    @Excel(name = "住址")
    private String address;

    @Excel(name = "身份证号")
    private String idCard;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 20, dateFormat = "yyyy-MM-dd")
    private Date entryDate;

    /** 状态（0在职 1离职） */
    @Excel(name = "状态", readConverterExp = "0=在职,1=离职")
    private String status;

    public Long getStaffId() { return staffId; }
    public void setStaffId(Long staffId) { this.staffId = staffId; }
    public String getStaffNo() { return staffNo; }
    public void setStaffNo(String staffNo) { this.staffNo = staffNo; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }
    public String getPosition() { return position; }
    public void setPosition(String position) { this.position = position; }
    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }
    public String getAddress() { return address; }
    public void setAddress(String address) { this.address = address; }
    public String getIdCard() { return idCard; }
    public void setIdCard(String idCard) { this.idCard = idCard; }
    public Date getEntryDate() { return entryDate; }
    public void setEntryDate(Date entryDate) { this.entryDate = entryDate; }
    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }
}


